import demo.conpent.User;
import demo.controller.GetUser;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class test {
    public static void main2(String[] args) {
        ApplicationContext content = new ClassPathXmlApplicationContext("spring-config.xml");
        GetUser user = content.getBean("getUser",GetUser.class);

        System.out.println(user.test().toString());
    }
    public static void main(String[] args) {
        ApplicationContext content =
                new ClassPathXmlApplicationContext("spring-config.xml");
        User user =(User) content.getBean("aaa");
        user.name="asd";
        user.toString();
        System.out.println(user.name);

        System.out.println(user.toString());
    }

}
